@import '../../../styles/var.scss';
@import '../../../styles/mixins.scss';

.container {
  background-color: #f5f5fa;

  :global {
    .g-basic-layout-body {
      padding: 0 !important;
    }
    .nut-tabs-titles {
      padding: 0;
      border-bottom: 1px solid #f0f0f0;
    }

    .nut-tabs-titles-item {
      padding: 0 24px;
    }

    .nut-tabs__content {
      padding: 0 16px;
    }
    .nut-tabpane {
      padding: 12px 24px;
    }
  }
}

// 店铺信息模块
.shopSection {
  background-color: #fff;
  margin-bottom: 20px;
}

.bannerWrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.bannerImage {
  width: 100vw;
}

.bannerPlaceholder {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 400px;
  background-color: #f5f5f5;
  @include flex-center;
}

.placeholderText {
  font-size: $font-size-base;
  color: $text-color-secondary;
}

.shopInfo {
  padding: 0 32px 0px;
  @include flex-start-center(column);
  gap: 12px;
}

.shopName {
  font-family: PingFangSC-Semibold;
  font-size: 48px;
  color: $text-color-main;
  font-weight: 600;
  line-height: 48px;
  margin: 62px 0 12px;
}

.shopIntro {
  font-family: PingFangSC-Regular;
  font-size: $font-size-base;
  color: $text-color-secondary;
  line-height: 36px;
  width: 100%;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  font-weight: 400;
  color: #000000;
  margin-bottom: 88px;
}

// 联系方式
.contactSection {
  padding: 0px 32px 32px;
  // border-top: 1px solid #f0f0f0;
}

.contactGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  :global {
    button {
      background: transparent !important;
      border: none !important;
      padding: 0 !important;
      margin: 0 !important;
      line-height: normal !important;

      &::after {
        border: none !important;
      }
    }
  }
}

.contactButton {
  @include flex-center(column);
  gap: 8px;
  padding: 16px 0;
  cursor: pointer;
  transition: all 0.3s;

  &:active {
    opacity: 0.6;
  }
}

.contactIconWrapper {
  @include flex-center;
  width: 76px;
  height: 76px;
  border-radius: 100%;
  background: #ffffff;
  box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.11);
  mix-blend-mode: normal;
  color: #000000;
  margin-bottom: 8px;
}

.contactButtonText {
  font-family: PingFangSC-Regular;
  font-size: $font-size-small;
  color: $text-color-secondary;
  line-height: 28px;
}

// 婚纱礼服模块
.dressSection {
  background-color: #fff;
  margin-bottom: 20px;
  padding-bottom: 32px;
}

.sectionHeader {
  padding: 32px 32px 12px;
  @include flex-space-between;
  align-items: center;
}

.sectionTitle {
  font-family: PingFangSC-Semibold;
  font-size: 32px;
  color: $text-color-main;
  font-weight: 600;
  line-height: 44px;
}

.moreIcon {
  @include flex-center;
  width: 48px;
  height: 48px;
  color: $text-color-secondary;
  cursor: pointer;
  transition: all 0.3s;

  &:active {
    opacity: 0.6;
  }
}

.dressGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  row-gap: 24px;
  column-gap: 10px;
  // margin-top: 24px;
  :global {
    .m-empty {
      width: 100% !important;
      grid-column: 1 / -1;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}

.dressCard {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dressImageWrapper {
  width: 100%;
  padding-bottom: 150%; // 1:1.5宽高比，高度是宽度的1.5倍
  position: relative;
  overflow: hidden;
  background-color: #f5f5f5;
}

.dressImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.dressInfo {
  padding: 16px;
  @include flex-start-start(column);
  gap: 8px;
}

.dressName {
  font-family: PingFangSC-Medium;
  font-size: $font-size-base;
  color: $text-color-main;
  font-weight: 500;
  line-height: 36px;
  @include ellipsis(2);
}

.dressPrice {
  font-family: PingFangSC-Semibold;
  font-size: $font-size-large;
  color: #ff3b30;
  font-weight: 600;
  line-height: 40px;
}

// 化妆摄影模块
.makeupSection {
  background-color: #fff;
  padding-bottom: 32px;
}

.makeupGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  row-gap: 24px;
  column-gap: 10px;
  // margin-top: 24px;
  :global {
    .m-empty {
      width: 100% !important;
      grid-column: 1 / -1;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}

.makeupCard {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.makeupImageWrapper {
  width: 100%;
  padding-bottom: 150%; // 1:1.5宽高比，高度是宽度的1.5倍
  position: relative;
  overflow: hidden;
  background-color: #f5f5f5;
}

.makeupImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.makeupInfo {
  padding: 16px;
  @include flex-start-start(column);
  gap: 8px;
}

.makeupName {
  font-family: PingFangSC-Medium;
  font-size: $font-size-base;
  color: $text-color-main;
  font-weight: 500;
  line-height: 36px;
  @include ellipsis(1);
}

.makeupPhone {
  font-family: PingFangSC-Regular;
  font-size: $font-size-small;
  color: $text-color-secondary;
  line-height: 32px;
}

.makeupPrice {
  font-family: PingFangSC-Semibold;
  font-size: $font-size-large;
  color: #ff3b30;
  font-weight: 600;
  line-height: 40px;
}
